﻿module Lhz.Page.DataManagement {
    export class UserDetail extends DetailPage<Lhz.Entity.ServiceCenter.User> {
        constructor() {
            super({
                serviceNo: "user",
                mappingOptionsArray: [
                    { propertyName: "Username", selector: "[name=Username]" },
                    { propertyName: "Password", selector: "[name=Password],[name=Repassword]" },
                    { propertyName: "Name", selector: "[name=Name]" },
                    { propertyName: "Phone", selector: "[name=Phone]" },
                    { propertyName: "IsAdmin", selector: "[name=IsAdmin]" }
                ],
                createItem: function (dp) {
                    return new Lhz.Entity.ServiceCenter.User();
                }
            });
        }
    }
    $(function () {
        new UserDetail();
    });
}
